<template>
    <view>
        <uni-card title="捐赠图书" extra="" thumbnail="/static/book.jpeg" @click="addBook">
        	<text>你可以献出你的爱心，捐赠图书</text>
        </uni-card>
        <br>
        <uni-card title="借阅图书"  extra="" thumbnail="/static/book.jpeg" @click="bookList">
        	<text>请选择你想借阅的图书</text>
        </uni-card>
        <br>
        <uni-card title="归还图书"  extra="" thumbnail="/static/book.jpeg" @click="backBook">
        	<text>按图书编号归还借阅图书</text>
        </uni-card>

    </view>
</template>

<script>
    export default {
        onLoad(options){
            this.siteId = options.siteId
        },
        data() {
            return {
                siteId:'',
            }
        },
        methods: {
            addBook(){
                uni.navigateTo({
                	url: '../library/addBook?siteId='+this.siteId
                });
            },
            bookList(){
                uni.navigateTo({
                	url: '../library/bookList?siteId='+this.siteId
                });
            },
            backBook(){
                uni.navigateTo({
                	url: '../library/backBook?siteId='+this.siteId
                });
            }
        }
    }
</script>

<style>

</style>
